import request from '@/utils/request'

export const listCheckhabitus = (search) => 
    request({
        url: '/checkhabitus',
        method: 'get',
        params: {
            pageNum: search.pageNum,
            pageSize:search.pageSize,
            queryString:search.queryString
        }
    }) 

export const removeCheckhabitus = (id) => 
    request({
        url: '/checkhabitus/' + id,
        method: 'delete'
    })

export const updatehabitus = (id, checkhabitus) =>
    request({
        url: '/checkhabitus/' + id,
        method: 'put',
        data: checkhabitus
    })

export const saveCheckhabitus = (checkhabitus) => 
    request({
        url: '/checkhabitus',
        method: 'post',
        data: checkhabitus
    })